Skip to content

Agente de análisis automático de pull requests - #7

Merged
IAnMove merged 1 commit into
mainfrom
cursor/pr-analysis-agent-b4b5
Aug 23, 2026
Merged

Agente de análisis automático de pull requests#7
IAnMove merged 1 commit into
mainfrom
cursor/pr-analysis-agent-b4b5

Conversation

@IAnMove

@IAnMove IAnMove commented Aug 16, 2026

Copy link
Copy Markdown
Owner

Qué hace

Añade un agente de revisión que se ejecuta en cada PR (abierto, actualizado o marcado como listo) y deja un comentario con:

  • Riesgo (low / medium / high)
  • Hallazgos: secretos, pesos/checkpoints, artefactos del clean-repo guard, telemetría, eval/shell=True, PRs enormes, Python de producto sin tests, cambios de UI
  • Lista de archivos tocados
  • Checklist de CONTRIBUTING.md

El script es scripts/analyze_pr.py (solo stdlib). El workflow es .github/workflows/pr-review.yml. El comentario se actualiza en cada push (no spamea).

Por qué no usamos Cursor Automations

El asistente nativo de Cursor (Bugbot / Security / PR Routing) exige Usage-Based Billing y un método de pago, aunque SuperGrok Heavy incluya Ultra a $0. Las automations crean cloud agents y Cursor pide on-demand billing como respaldo. Este workflow no cobra ni pide tarjeta.

Uso local:

python scripts/analyze_pr.py --base origin/main

Tests

python -m unittest tests/test_analyze_pr.py

Open in Web Open in Cursor 

Post a heuristic risk review on every pull request so the repo can
analyze diffs without Cursor Automations or usage-based billing.

Co-authored-by: THEINAOG <IAnMove@users.noreply.github.com>
@github-actions

Copy link
Copy Markdown

PR Review — Loreframe Studio

Risk: low
Scope: 4 file(s); +724/-0; GitHub workflows, repo scripts / CI

Automated review from scripts/analyze_pr.py. This is a heuristic pass (no LLM) so humans still own the merge decision.

Findings

  • No heuristic issues. Still run the CI checklist below.

Changed files

  • added: .github/workflows/pr-review.yml, scripts/analyze_pr.py, tests/test_analyze_pr.py
  • modified: CONTRIBUTING.md

CONTRIBUTING checklist

  • python scripts/verify_clean_repo.py
  • python -m compileall -q app/services app/launch.py scripts
  • cd ui && npm run build if the UI changed
  • No weights, CivitAI sidecars, or generated guides
  • Stays local-first (no required accounts / telemetry)

Posted by the repo PR review workflow. Re-runs on each push to the PR.

@IAnMove
IAnMove marked this pull request as ready for review August 16, 2026 09:39
@cursor

cursor Bot commented Aug 16, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

@IAnMove
IAnMove merged commit a453e99 into main Aug 23, 2026
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants